package com.woniu.sharepark.platformsystem.log.util;

import com.woniu.sharepark.platformsystem.log.dao.LogMapper;

import com.woniu.sharepark.platformsystem.log.pojo.Log;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/** 日志组件，操作日志表
 * @author zy
 * @date 2019/6/3 16:27
 */
@Component
public class LogUtil {


    @Resource
    LogMapper logMapper;

    public void writeBackgroundLog(Log log){
        logMapper.insert(log);
    }


}
